package lifecycle;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class main {
    public static void main(String[] args) {
//        ApplicationContext context=new ClassPathXmlApplicationContext("application-lifecycle.xml");
//        UserServiceImplLifecycle user = context.getBean("user", UserServiceImplLifecycle.class);
//        ((ConfigurableApplicationContext)context).close();

        ApplicationContext context=new ClassPathXmlApplicationContext("application-lifecycle.xml");
       // UserServiceImplLifecycle2 user2 = context.getBean("user2", UserServiceImplLifecycle2.class);



    }
}
